From: Owen W. Taylor Date: Thu, 13 Aug 2009 17:11:21 +0000 (-0400) Subject: Clear _searchTimeoutId when removing search X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11082 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=059c330d95f44edb33fd0b7cad39261b4c1abbe8;p=gnome-shell.git Clear _searchTimeoutId when removing search When we remove the search because the search empty is entry, we need to reset _searchTimeoutId to 0. http://bugzilla.gnome.org/show_bug.cgi?id=591719 --- diff --git a/js/ui/dash.js b/js/ui/dash.js index edd463e61..4028c8de6 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -455,8 +455,10 @@ Dash.prototype = { if (!this._searchActive) { if (this._searchPane != null) this._searchPane.close(); - if (this._searchTimeoutId > 0) + if (this._searchTimeoutId > 0) { Mainloop.source_remove(this._searchTimeoutId); + this._searchTimeoutId = 0; + } return; } if (this._searchTimeoutId > 0)